﻿using System;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using VIew1.Views;
using Person.View;

namespace Menu.View
{
    /// <summary>
    /// Interaction logic for MenuView.xaml
    /// </summary>
    public partial class MenuView : UserControl
    {

        private readonly IUnityContainer container;
        private readonly IRegionManager rManager;


        public MenuView(IUnityContainer c, IRegionManager r)
        {
            InitializeComponent();

            container = c;
            rManager = r;

          
        }

        private void NavigateRadioButton_Click(object sender, RoutedEventArgs e)
        {
            Uri viewNav = new Uri("MainView", UriKind.Relative);
            rManager.RequestNavigate(RegionNames.MainContentRegion, viewNav);
        }
      
    }
}
